<?php

declare(strict_types=1);

namespace Imi\Test\Component\Validate\Classes;

use Imi\Validate\Annotation\Decimal;
use Imi\Validate\Annotation\Integer;
use Imi\Validate\Validator;

#[Decimal(name: 'decimal', min: 1, max: 10, accuracy: 2, exception: 'InvalidArgumentException', exCode: 0)]
#[Integer(name: 'int', min: 0, max: 100, message: '{:value} 不符合大于等于{min}且小于等于{max}', exception: 'InvalidArgumentException', exCode: 0)]
class TestSceneValidator extends Validator
{
    /**
     * 场景定义.
     */
    protected ?array $scene = [
        'a' => ['decimal'],
        'b' => ['int'],
        'c' => ['decimal', 'int'],
    ];
}
